package com.clt.ess.entity;


import java.util.List;

public class Unit {
    private String unitId;
    private String unitName;

    private String unit_name_en;
    private String unit_name_sh;
    private String credit_code;
    private String area_number;

    private int level;
    private String parentUnitId;
    private String inputUserId;
    private int state;
    private List<Unit> menus; //子菜单列表

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getUnit_name_en() {
        return unit_name_en;
    }

    public void setUnit_name_en(String unit_name_en) {
        this.unit_name_en = unit_name_en;
    }

    public String getUnit_name_sh() {
        return unit_name_sh;
    }

    public void setUnit_name_sh(String unit_name_sh) {
        this.unit_name_sh = unit_name_sh;
    }

    public String getCredit_code() {
        return credit_code;
    }

    public void setCredit_code(String credit_code) {
        this.credit_code = credit_code;
    }

    public String getArea_number() {
        return area_number;
    }

    public void setArea_number(String area_number) {
        this.area_number = area_number;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getParentUnitId() {
        return parentUnitId;
    }

    public void setParentUnitId(String parentUnitId) {
        this.parentUnitId = parentUnitId;
    }

    public String getInputUserId() {
        return inputUserId;
    }

    public void setInputUserId(String inputUserId) {
        this.inputUserId = inputUserId;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public List<Unit> getMenus() {
        return menus;
    }

    public void setMenus(List<Unit> menus) {
        this.menus = menus;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"unitId\":\"")
                .append(unitId).append('\"');
        sb.append(",\"unitName\":\"")
                .append(unitName).append('\"');
        sb.append(",\"unit_name_en\":\"")
                .append(unit_name_en).append('\"');
        sb.append(",\"unit_name_sh\":\"")
                .append(unit_name_sh).append('\"');
        sb.append(",\"credit_code\":\"")
                .append(credit_code).append('\"');
        sb.append(",\"area_number\":\"")
                .append(area_number).append('\"');
        sb.append(",\"level\":")
                .append(level);
        sb.append(",\"parentUnitId\":\"")
                .append(parentUnitId).append('\"');
        sb.append(",\"inputUserId\":\"")
                .append(inputUserId).append('\"');
        sb.append(",\"state\":")
                .append(state);
        sb.append(",\"menus\":")
                .append(menus);
        sb.append('}');
        return sb.toString();
    }
}
